﻿<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="format-detection" content="telephone=no" />
    <title>API类结构</title>
    <link type="text/css" rel="stylesheet" href="css/bootstrap.min.css" />
</head>
<body>
    <div class="container-fluid">
        <div class="col-xs-12">
            <div class="row" id="ApiData">
            </div>
        </div>
    </div>
    <script id="ApiInfo" type="text/html">
        <h1>{{ClassName}} 类结构</h1>
        <p></p>
        <p>类说明：&nbsp;&nbsp;{{Show}}</p>
        <p></p>
        <table class="table table-striped">
            <thead>
                <tr>
                    <th>名称</th>
                    <th>基础类型</th>
                    <th>类型</th>
                    <th>默认值</th>
                    <th>说明</th>
                    <th>是否空</th>
                    <th>长度或范围</th>
                    <th>格式</th>
                    <th>其它验证</th>
                </tr>
            </thead>
            <tbody>
                {{each ProList}}
                <tr>
                    <td>{{$value.ParamName}}</td>
                    <td>{{$value.ParamType}}</td>
                    <td>
                        {{each $value.ElementType as val}}
                        {{if val.ElementType==1}}
                        <p><a href="ApiClassInfo.html?id={{val.Id}}">{{val.ElementName}}</a><p>
                            {{else if val.ElementType==2}}
                        <p><a href="ApiEnumInfo.html?id={{val.Id}}">{{val.ElementName}}</a><p>
                            {{else}}
                        <p>{{val.ElementName}}<p>
                            {{/if}}
                            {{/each}}
                    </td>
                    <td>{{$value.DefValue}}</td>
                    <td>{{$value.ParamShow}}</td>
                    <td>
                        {{if $value.NullCheck == null || $value.NullCheck.IsAllowNull}}
                        是
                        {{else}}
                        <p>否</p>
                        <p>说明:{{$value.NullCheck.Show}}</p>
                        <p>返回错误ID:{{$value.NullCheck.ErrorId}}</p>
                        <p>返回错误ID:{{$value.NullCheck.ErrorCode}}</p>
                        {{/if}}
                    </td>
                    <td>
                        {{if $value.LenFormat != null && $value.LenFormat.length !=0}}
                        {{each $value.LenFormat as val }}
                        <p>说明：{{val.LenShow}}</p>
                        <p>返回错误ID：{{val.ErrorId}}</p>
                        <p>返回错误Code：{{val.ErrorCode}}</p>
                        {{/each}}
                        {{/if}}
                    </td>
                    <td>
                        {{if  $value.DataFormat != null && $value.DataFormat.length != 0}}
                        {{each $value.DataFormat as val}}
                        <p>类型：{{val.FormatTitle}}</p>
                        {{if val.FormatShow != null}}
                        <p>说明：{{val.FormatShow}}</p>
                        {{/if}}
                        {{if val.FormatRegex != null}}
                        <p>正则表达式：{{val.FormatRegex}}</p>
                        {{/if}}
                        <p>返回错误ID：{{val.ErrorId}}</p>
                        <p>返回错误Code：{{val.ErrorCode}}</p>
                        {{/each}}
                        {{/if}}
                    </td>
                    <td>
                        {{if $value.OtherFormat != null && $value.OtherFormat.length !=0}}
                        {{each $value.OtherFormat as val}}
                        <p>说明：{{val.Show}}</p>
                        <p>返回错误ID：{{val.ErrorId}}</p>
                        <p>返回错误Code：{{val.ErrorCode}}</p>
                        {{/each}}
                        {{/if}}
                    </td>
                </tr>
                {{/each}}
            </tbody>
        </table>
    </script>
    <script src="js/jquery.min.js" charset="utf-8" type="text/javascript"></script>
    <script src="js/basic.js" charset="utf-8" type="text/javascript"></script>
    <script src="js/art-template.js" charset="utf-8" type="text/javascript"></script>
    <script src="js/ApiClassInfo.js" charset="utf-8" type="text/javascript"></script>
</body>
</html>